<?php

/*
	Class: ContentEntityTypes.php

	About: Author
		J William McCarthy

	About: License
		<http://communit.as/docs/license>

	About: See Also
	 	<App_Db_Table_Abstract>
*/
class ContentEntityTypes extends App_Db_Table_Abstract {
    protected $_name 	= 'content_entity_types';
    protected $_primary = 'entity_type_id';

	function entityTypeIdExists($entity_type_id){
		
		if($this->getCountByWhereClause($this->getAdapter()->quoteInto("entity_type_id = ?",$entity_type_id)) == 0){
			return false;
		} else {
			return true;
		}
		
	}
	
	function getEntityTypeById($entity_type_id){
		$where = $this->getAdapter()->quoteInto("entity_type_id = ?",$entity_type_id);
		return $this->fetchRow($where);
	}


	/* Group: Has No Methods */
}